package com.mingke.db.Service;

import com.mingke.db.Dao.SchemaInterface;
import com.mingke.db.Entity.SchemaTableColumn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchemaService {

    @Autowired
    SchemaInterface schemaInterface;

    public List<String> listSchemas(){
        return schemaInterface.listSchemas();
    }

    public List<String> listTables(String schemaName){
        return schemaInterface.listTables(schemaName);
    }

    public List<SchemaTableColumn> listTableColumns(String tableName){
        return schemaInterface.listTableColumns(tableName);
    }
}
